﻿using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Peer
{
    [DataContract(Namespace = "Peer")]
     public class FileMetaData
     {

         public FileMetaData(
          string fileName)
         {
             this.FileName = fileName;
             this.FileType = FileTypeEnum.GENERIC;
         }

         public FileMetaData(
             string fileName,             
             FileTypeEnum fileType)
         {
             
             this.FileName = fileName;
             this.FileType = fileType;
         }
        
         [DataMember(Name="FileType", Order=0, IsRequired=true)]
         public FileTypeEnum FileType;         
         [DataMember(Name = "Filename", Order = 2, IsRequired = false)]
         public string FileName;
     }

    public enum FileTypeEnum
    {
        GENERIC,
        BINARY,
        TEXT
    }
}
